import request from '@/utils/request'

// 查询分页列表
export function pageYrVersion(page) {
    return request({
        url: '/api-blog/management/version/page',
        method: 'post',
        data: page
    })
}

// 查询列表
export function listYrVersion(query) {
    return request({
        url: '/api-blog/management/version/list',
        method: 'get',
        params: query
    })
}

// 查询详细
export function infoYrVersion(yrVersionId) {
    return request({
        url: '/api-blog/management/version/info/' + yrVersionId,
        method: 'get'
    })
}


// 新增
export function addYrVersion(data) {
    return request({
        url: '/api-blog/management/version/add',
        method: 'post',
        data: data
    })
}

// 修改
export function editYrVersion(data) {
    return request({
        url: '/api-blog/management/version/edit',
        method: 'post',
        data: data
    })
}

// 删除
export function removeYrVersion(yrVersionId) {
    return request({
        url: '/api-blog/management/version/remove/' + yrVersionId,
        method: 'post'
    })
}
